﻿
namespace BusinessApplication.Web.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // The MetadataTypeAttribute identifies tbl_locationsMetadata as the class
    // that carries additional metadata for the tbl_locations class.
    [MetadataTypeAttribute(typeof(tbl_locations.tbl_locationsMetadata))]
    public partial class tbl_locations
    {

        // This class allows you to attach custom attributes to properties
        // of the tbl_locations class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class tbl_locationsMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private tbl_locationsMetadata()
            {
            }

            public string address { get; set; }

            public Nullable<double> lat { get; set; }

            public Nullable<double> lng { get; set; }

            public int locations_id { get; set; }

            public int products_id { get; set; }

            public tbl_products tbl_products { get; set; }
        }
    }
}
